# 10鼠检验1000药，一瓶毒药，同时吃，找出毒药

# 老鼠列表
rats = []
for i in range(10):
    rats.append('')
# print(rats)
for j in range(10):
    rats[j] = j+1
# print(rats)

poison = int(input('毒药序号：'))
poison_2 = bin(poison)
poison_2 = poison_2[2:]
poison_2 = poison_2[::-1]
# print(poison_2)
num = 0
dead_list = []
for p in poison_2:
    if p == '1':
        dead_list.append(rats[num])
    num += 1

print('毒死老鼠：', dead_list)
